import storage from '@/utils/storage.js'
import msg from '@/utils/message.js'
import router from './core/router.js'
import wxSdk from '@/utils/wxSdk.js'
import config from '@/utils/initConfig.js'
import store from '@/store/index.js'
import DictData from '@/utils/dict/init'
import DictTag from '@/utils/dict/DictTag'
import day from 'dayjs'
export default {
	install(Vue) {
		// 本地存储
		Vue.prototype.$s = storage
		// 全局消息
		msg.init(Vue)
		Vue.prototype.$msg = msg
		// 路由跳转
		Vue.prototype.router = router
		uni.router = router
		// wxSDK
		Vue.prototype.$wx = wxSdk
		// 字典插件
		Vue.component('DictTag', DictTag);
		// 初始化字典
		DictData.install();
		// config
		config.init(Vue)
		Vue.prototype.store = store
		Vue.prototype.day = day
	}
}
